let someValue: any = "this is a string";

// 断言可以作为强制类型转化的方案
// <type>
let strLength: number = (<string>someValue).length;

// as
let strLength1: number = (someValue as string).length;

